/*
 * InputMainJPanel.java
 *
 * Created on 16.01.2009, 17:03:51
 */
package morenoapp.components.input;

import morenoapp.model.data.MorenoRespondentFace;

/**
 *
 * @author dmitry.mamonov
 */
public class InputMainJPanel extends javax.swing.JPanel {
    //private InputRespondentsJPanel inputRespondentsJPanel = new InputRespondentsJPanel();
    private InputRespondentsPanel inputRespondentsPanel = new InputRespondentsPanel();

    private InputAnswersTableJPanel answersTableJPanel = new InputAnswersTableJPanel();

    /** Creates new form InputMainJPanel */
    public InputMainJPanel() {
        initComponents();

        jSplitPaneRoot.setLeftComponent(inputRespondentsPanel);
        jSplitPaneRoot.setRightComponent(answersTableJPanel);

        inputRespondentsPanel.addMorenoRespondentSelecetionListener(answersTableJPanel);
    }

    public void setCurrentRespondent(MorenoRespondentFace respondent) {
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jSplitPaneRoot = new javax.swing.JSplitPane();

        setName("Form"); // NOI18N
        addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentShown(java.awt.event.ComponentEvent evt) {
                formComponentShown(evt);
            }
        });

        jSplitPaneRoot.setDividerLocation(400);
        jSplitPaneRoot.setName("jSplitPaneRoot"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jSplitPaneRoot, javax.swing.GroupLayout.DEFAULT_SIZE, 499, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jSplitPaneRoot, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
        );
    }// </editor-fold>//GEN-END:initComponents

    private void formComponentShown(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_formComponentShown
    }//GEN-LAST:event_formComponentShown

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JSplitPane jSplitPaneRoot;
    // End of variables declaration//GEN-END:variables

}
